﻿using System.Collections.Generic;
using System.Web.Http;
using Smatime.Web.DAO;
using Smatime.Web.Models;

namespace Smatime.Web.Controllers
{
    public class UserStoreController : ApiController
    {
        // GET api/userstore/5 
        public IEnumerable<CompanyStore> Get(int id)
        {
            return new UserStoreRepository().GetStoresByUserId(id);
        }

        //GET store list by company userid
        [Route("api/userstore/companyuserId/{companyUserId}")]
        public IEnumerable<UserStore> Get(long companyUserId)
        {
            return new UserStroreMainRepository().GetStoresByUserId(companyUserId);
        }


    }
}